package com.kuiandjie.service;

import java.util.List;

import com.kuiandjie.dao.GoalDao;
import com.kuiandjie.entity.Goal;

public class GoalService {
	GoalDao gd = new GoalDao();

	public void addGoal(Goal g) {
		gd.addGoal(g);
		
	}

	public Goal findGoalById(String curgid) {
		return gd.findGoalById(curgid);
	}

	public void editGoal(Goal g) {
		gd.editGoal(g);
		
	}

	public List<Goal> findAllGoalByPid(int curpid) {
		return gd.findAllGoalByPid(curpid);
	}

	public List<Goal> findAllGoalByEmployeeId(int employeeId) {
		return gd.findByEmployeeIdAndTaskId(employeeId);
	}
}
